<?
	if (!empty($_REQUEST['users_id'])) {
  	if (authorized('users', 'delete', true)) {
			db_query("DELETE FROM users WHERE id = {$_REQUEST['users_id']}");
			db_query("DELETE FROM users_to_user_roles WHERE users_id = {$_REQUEST['users_id']}");
		} else warning('You do not have permission to delete users');
	}
	
	location('/users/admin/index');